#include "board.hpp"

using namespace std;

Board::Board() {
	cout << "Board::Board ENTER" << endl;
	reset();
	cout << "Board::Board EXIT" << endl;
}

void Board::reset() {
	//memset(this->tab, 0, ROWS * COLUMNS * sizeof(int));
	cout << "Board::reset ROWS=" << ROWS << " COLUMNS=" << COLUMNS << endl;
	int i, j;
	for(i = 0; i < ROWS; i++)
		for(j = 0; j < COLUMNS; j++)
			tab[i][j] = 0;
}

void Board::print() {
	int i, j;
	for(i = 0; i < ROWS; i++) {
		if(i % 3 == 0)
			cout << endl;
		for(j = 0; j < COLUMNS; j++) {
			if(j % 3 == 0)
				cout << " ";
			cout << tab[i][j] << " ";
		}
		cout << endl;
	}
}

